//
// Created by root on 24-7-21.
//
#include "./include/epoll_event_hand.h"
int epoll_event_add(int epfd, int fd, int event) {
    struct epoll_event ev;
    ev.data.fd = fd;
    ev.events = event;
    return epoll_ctl(epfd,EPOLL_CTL_ADD,fd,&ev);
};

int epoll_event_del(int epfd,int fd,int event){
    struct epoll_event ev;
    ev.data.fd = fd;
    ev.events = event;
    return epoll_ctl(epfd,EPOLL_CTL_DEL,fd,&ev);
}
